package com.hengtiansoft.lfy.widget;

/**
 * Created by suyiyang on 2016/10/18.
 */

import android.content.Context;
import android.graphics.Color;
import android.util.AttributeSet;
import android.view.ContextMenu;
import android.view.Gravity;
import android.widget.EditText;

public class FreeChoiceTextView extends EditText {

    public FreeChoiceTextView(Context context) {
        super(context);
        initialize();
    }

    public FreeChoiceTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
        initialize();
    }
    public FreeChoiceTextView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initialize();
    }

    private void initialize() {
        setGravity(Gravity.TOP);
        setBackgroundColor(Color.alpha(0));
    }

    @Override
    protected void onCreateContextMenu(ContextMenu menu) {

    }

    @Override
    public boolean getDefaultEditable() {
        return false;
    }

}
